/**
 * JAVACC DEMO 1.0
 * @copy right apache company All rights reserved. 
 * @Package com.apache.task.entity  
 */
package com.apache.task.entity;

/**
 * description:  任务配置的封装类
 * @author Hou Dayu 创建时间：2015-1-14  
 * @Copyright(c)2014:
 */
public class TaskEntity {

	private String taskKey;//线程代号
	private String className;//定时任务类
	private String methodName;//方法名
	private String taskType;//任务类型
	private long intervalType;//间隔类型:1按天间隔,0按小时间隔
	private long hour;//小时
	private long minute;//分钏
	private long second;//秒
	private boolean openStart = false;//任务是否开启
	private String description = "";//描述

	private int startTime = 0;//开始时点(0~23)
	private int endTime = 0;//结束时点(0~23)
	private int taskStatus = 0;//状态;

	public String getTaskKey() {
		return taskKey;
	}

	public void setTaskKey(String taskKey) {
		this.taskKey = taskKey;
	}

	/**
	 * description:  定时任务类
	 */
	public String getClassName() {
		return className;
	}

	/**
	 * description:  定时任务类
	 */
	public void setClassName(String className) {
		this.className = className;
	}

	/**
	 * description:  执行方法名
	 */
	public String getMethodName() {
		return methodName;
	}

	/**
	 * description:  执行方法名
	 */
	public void setMethodName(String methodName) {
		this.methodName = methodName;
	}

	public String getTaskType() {
		return taskType;
	}

	public void setTaskType(String taskType) {
		this.taskType = taskType;
	}

	/**
	 * description:  间隔类型:1按天间隔,0按小时间隔
	 */
	public long getIntervalType() {
		return intervalType;
	}

	public void setIntervalType(long intervalType) {
		this.intervalType = intervalType;
	}

	/**
	 * description:  小时
	 */
	public long getHour() {
		return hour;
	}

	/**
	 * description:  小时
	 */
	public void setHour(long hour) {
		this.hour = hour;
	}

	/**
	 * description:  分钟
	 */
	public long getMinute() {
		return minute;
	}

	/**
	 * description:  分钟
	 */
	public void setMinute(long minute) {
		this.minute = minute;
	}

	/**
	 * description:  秒
	 */
	public long getSecond() {
		return second;
	}

	/**
	 * description:  秒
	 */
	public void setSecond(long second) {
		this.second = second;
	}

	public boolean isOpenStart() {
		return openStart;
	}

	public void setOpenStart(boolean openStart) {
		this.openStart = openStart;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public int getStartTime() {
		return startTime;
	}

	public void setStartTime(int startTime) {
		this.startTime = startTime;
	}

	public int getEndTime() {
		return endTime;
	}

	public void setEndTime(int endTime) {
		this.endTime = endTime;
	}

	public int getTaskStatus() {
		return taskStatus;
	}

	public void setTaskStatus(int taskStatus) {
		this.taskStatus = taskStatus;
	}

}
